package com.groupbuying.settleproducer.utils;

import org.apache.commons.collections4.MapUtils;

import java.util.Map;

public class RefundParamsCheckUtils {

    public static boolean checkRefundParams(Map<String,Object> params){
        if(MapUtils.isEmpty(params)){
            return false;
        }
        if(null == params.get("orderId")){
            return false;
        }
        if(null == params.get("amount")){
            return false;
        }
        if(null == params.get("refundPwd")){
            return false;
        }
        return true;
    }
}
